package com.whsxt.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author: caoqingwen
 * @CreateTime: 2021-03-12 10:29
 * @Description: MybatisPlus配置
 */
@Configuration
@MapperScan(basePackages = {"com.whsxt.mapper"})
public class MybatisPlusConfig {


    /**
     * 做分页的配置
     *
     * @return
     */
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }


}
